package com.dengwei.smali.first.dwpull_to_refresh.PullToRefresh;

import com.dengwei.smali.first.dwpull_to_refresh.PullToRefresh.indicator.PullToRereshIndicator;

/**
 * Created by dengwei on 2017/3/18.
 */

public interface PullToRefreshUIHandler{

    /**
     * 执行UI重设
     * @param frame
     */
    void onUIReset(PullToRefreshFrameLayout frame);

    /**
     * 执行刷新中
     * @param frame
     */
    void onUIRefreshPrepare(PullToRefreshFrameLayout frame);

    /**
     * 执行刷新开始
     * @param frame
     */
    void onUIRefreshBegin(PullToRefreshFrameLayout frame);

    /**
     * 执行刷新结束
     * @param frame
     */
    void onUIRefreshComplete(PullToRefreshFrameLayout frame);

    /**
     *
     * @param frame
     * @param isUnderTouch
     * @param status
     * @param indicator
     */
    void onUIPositionChange(PullToRefreshFrameLayout frame, boolean isUnderTouch, int status, PullToRereshIndicator indicator);
}
